package ovm.gui.views.catalogs;

import ovm.gui.views.AbstractCatalogView;

/**
 * Created by IntelliJ IDEA.
 * User: Jokser
 * Date: 08.06.12
 * Time: 7:15
 * To change this template use File | Settings | File Templates.
 */
public class EquipmentTypeCatalogView extends AbstractCatalogView {

    public EquipmentTypeCatalogView(Class entityClass, Boolean editable) {
        super(entityClass, editable);
        setCaption("Справочник. Тип инвентаря.");
    }

    @Override
    protected void setContainerProperties() {
        entityContainer.addContainerProperty("id", Integer.class, null, true, true);
        entityContainer.addContainerProperty("value", String.class, "", true, true);
        entityContainer.addContainerProperty("description", String.class, "", true, true);
    }

    @Override
    protected void buildTable() {
        table.setVisibleColumns(new Object[]{"id", "value", "description"});
        table.setColumnHeaders(new String[]{"ID", "Название", "Описание"});
    }
}
